package cn.edu.scau.cmi.liujianxun.client;

import java.awt.Button;
import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class MultipletonClient extends Application {

	private Stage primaryStage;
	
	@Override
	public void start(Stage primaryStage) {
		this.primaryStage = primaryStage;
        this.primaryStage.setTitle("实验二 多例模式");

        show();
	}

	public void show() {
        try {
        	Parent root = FXMLLoader.load(getClass().getResource("fxUI/mutipleton/MultipletonDemo.fxml"));
            Scene scene = new Scene(root);
            this.primaryStage.setScene(scene);
            this.primaryStage.show();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

	public static void main(String[] args) {
		launch(args);
	}
}
